{% extends 'admin/master.html' %}
{% import 'admin/lib.html' as lib with context %}
{% from 'admin/lib.html' import extra with context %} {# backward compatible #}
{% block body %}
    <div class="row">
        <div class="col-md-6">
        <table class="table table-bordered">
          <thead>
          <tr>
              <th>排序ID</th>
              <th>标题</th>
              <th>URL</th>
          </tr>
          </thead>
            <tbody>
            {% for k in down_list %} [[url,title],[url,title]...]
            <tr>
                <td>{{ loop.index }}</td>
                <td>{{ k[1] }}</td>
                <td>{{ k[0] }}</td>
            </tr>
            {% endfor %}
            </tbody>
        </table>
        </div>
        <div class="col-md-6">
            <table class="table table-bordered">
              <thead>
              <tr>
                  <th>排序ID</th>
                  <th>标题</th>
                  <th>URL</th>
              </tr>
              </thead>
                <tbody>
                {% for k in now_list %}
                <tr style="{% if k.sort_number in excption_sorts %}background: rebeccapurple{% else %}{% endif %}">
                    <td>{{ k.sort_number }}</td>
                    <td>{{ k.title }}</td>
                    <td>{{ k.source_url }}</td>
                </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
{% endblock %}
